import React, { Component } from 'react'
import { Row ,Col} from 'antd'
import Header from './components/Header'
import Footer from './components/Footer'
import NavLeft from './components/NavLeft'
// import Home from './pages/home'
import './style/common.less'

export default class Admin extends Component {
    render() {
        return (
         
                <Row className="container">
                    {/*span 写字符串会报错 得写{} */}
                    <Col span={3} className='navleft'>
                    <NavLeft />
                    </Col>
                    <Col span={21} className="main">
                        <Header/>
                        <Row className="content">
                          
                            {/* 通过props动态加载子组件 */}
                            {this.props.children}
                        </Row>
                        <Footer/>
                    </Col>
                </Row>
      
        )
    }
}
